package com.mmall.service;

import com.mmall.common.ServiceResponse;
import com.mmall.pojo.User;


public interface IUserService {
    ServiceResponse<User> login(String username, String password);

    ServiceResponse<String> register(User user);

    ServiceResponse<String> checkvalid(String str, String type);

    ServiceResponse<String> resetPassword(String passwordold, String passwordnew, User user);

    ServiceResponse<String> selectQuestion(String username);

    ServiceResponse<String> checkAnswer(String username, String question, String answer);

    ServiceResponse<String> forgetResetPassowrd(String username, String passwordnew, String token);

    ServiceResponse<User> updateinfomation(User user);

    ServiceResponse<User> getinformation(Integer userID);

    ServiceResponse checkAdminRole(User user);
}
